package cn.sangyy.car.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sangyangyang
 * @since 2023-05-26
 */
@TableName("t_car_car_operation_log")
public class CarOperationLog extends Model<CarOperationLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 车辆id
     */
    @TableField("car_id")
    private Long carId;
    /**
     * 操作类型 1-审核成功 2-审核失败 3-上架  4-下架
     */
    @TableField("operation_type")
    private Integer operationType;
    /**
     * 操作人id
     */
    @TableField("operation_id")
    private Long operationId;
    /**
     * 操作时间
     */
    @TableField("operation_time")
    private Date operationTime;
    /**
     * 备注
     */
    private String note;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    public Integer getOperationType() {
        return operationType;
    }

    public void setOperationType(Integer operationType) {
        this.operationType = operationType;
    }

    public Long getOperationId() {
        return operationId;
    }

    public void setOperationId(Long operationId) {
        this.operationId = operationId;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CarOperationLog{" +
        ", id=" + id +
        ", carId=" + carId +
        ", operationType=" + operationType +
        ", operationId=" + operationId +
        ", operationTime=" + operationTime +
        ", note=" + note +
        "}";
    }
}
